<?php
/**
 * 后台操作日志模型
 * @author yupoxiong<i@yufuping.com>
 */

namespace app\admin\model;

class OtaImei extends Model
{
    protected $name = 'ota_imei';

    public $softDelete = false;

    public $methodText = [
        1 => 'GET',
        2 => 'POST',
        3 => 'PUT',
        4 => 'DELETE',
    ];

    protected $autoWriteTimestamp = true;
    protected $updateTime = false;

    protected $searchField = [
        'name'
    ];

    protected $timeField = [
        'create_time'
    ];

    //关联设备
    public function OtaGroup()
    {
        return $this->hasMany(OtaGroup::class, 'ota_group', 'id');
    }

}

